package com.fanshilz.flower2025.apps.admin.sysRole.req;

import com.fanshilz.flower2025.business.sys.sysRole.entity.SysRole;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
@AutoMapper(target = SysRole.class, reverseConvertGenerate = false)
public class SysRoleSaveOrUpdateReq {

    private Long roleId;

    @NotBlank
    private String roleName;

    @NotBlank
    private String roleCode;

    @NotEmpty
    private List<Long> authorityTree;

}
